package com.wangtianxiang.rabbitmq.utils;

import com.alibaba.fastjson.JSONObject;

import java.util.Map;

public class ObjectUtil {
	@SuppressWarnings("unchecked")
	public static Map<String,Object> convertToMap(Object obj) {
		return (Map<String, Object>) JSONObject.toJSON(obj);
	}
}
